package com.itheima.d05_duotai_use;

public class Teacher extends  Person{

    public Teacher(String name, int age, String sex) {
        super(name, age, sex);
    }

    public void teach() {
        System.out.println(getName()+"，老师正在讲课...");
    }
}
